﻿namespace ExamV5
{
    using System;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class FrmUpdate : Page
    {
        protected Button butDefault;
        protected HtmlForm form1;

        protected void butDefault_Click(object sender, EventArgs e)
        {
            PublicFun fun = new PublicFun();
            fun.ExecuteSql("alter table ExamUser alter column LoginIP varchar(50) ");
            fun.ExecuteSql("alter table StudyPlanInfo add IsAdd char(1) default 'N' ");
            fun.ExecuteSql("update StudyPlanInfo set IsAdd='N' ");
            base.Response.Write("<script>alert('更新数据库脚本操作成功！')</script>");
        }

        protected void Page_Load(object sender, EventArgs e)
        {
        }
    }
}

